package io.renren.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.renren.commons.tools.utils.DateUtils;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

/**
 * 出入
 *
 * @author liuyujun 384880231@qq.com
 * @since 3.0 2022-01-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("work_travel")
public class TravelEntity {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId
    private Long id;
    /**
     * 用户ID
     */
    private Long uid;
    /**
     * 车ID
     */
    private Long vid;
    /**
     * 出行时间
     */
    private Date travelTime;
    /**
     * 门坐标id
     */
    private Long cid;
    /**
     * 出入
     */
    private Boolean inOrOut;
    /**
     * 逻辑删除
     */
    private Boolean logicalDelete;
    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    private String creator;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createDate;
}